﻿@model PagedList.IPagedList<MsForgeReboot.Framework.Entities.Event>

@{
    ViewBag.Title = "Index";
}

<h2>Predstojeći dogadjaji</h2>
@Html.Partial("_PagedView", Model)
<ul>
    @foreach (var item in Model)
    {
        <li>
            <h3>@Html.ActionLink(item.Title, "Details", new { urlPointer = item.UrlPointer })</h3>
            <div>
                @Html.DisplayFor(modelItem => item.Begin) - @Html.DisplayFor(modelItem => item.End)
            </div>
            <div>
                @Html.DisplayFor(modelItem => item.Body) - @Html.ActionLink("...", "Details", new { urlPointer = item.UrlPointer })
            </div>
        </li>

    }
</ul>
@Html.Partial("_PagedView", Model)